package com.laviedesfons.jhmtasc.exceptions;

import com.laviedesfons.jhmtasc.logging.CustomLevel;
import fr.x9c.cadmium.kernel.Fail;
import java.util.logging.Level;

/**
 *
 * @author Romano
 */
public class MArrayBoundException extends MInternalException{

    private static final Level level = CustomLevel.SEVERE;
    private static Fail.Exception cadmiumException;

    static {
        try{
            Fail.arrayBoundError();
        } catch (Fail.Exception e){
            cadmiumException = e;
        }
    }

    @Override
    public Fail.Exception getInternalCause() {
        return cadmiumException;
    }

    @Override
    public Level getLogLevel() {
        return level;
    }
}
